package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * @description:    问卷试题内容
 * @author: xy丶Z
 * @date: Created in 2021/3/3 16:42
 * @version: 1.0.0
 * @modified By:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "soul_question")
public class Questions implements Serializable {

    private static final long serialVersionUID = 432183095094216817L;

    private ObjectId id;
    private String testId; //问卷编号
    private String questionId; //试题编号
    private String text; //试题内容

    private List<Answers> answers;  //试题的选项
}
